<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Olympic Data Visualization</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container">
            <a class="navbar-brand" href="/">
                <i class="bi bi-bar-chart-line-fill me-2"></i>Olympic Data Visualization
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link" href="/medals-evolution">
                            <i class="bi bi-trophy me-1"></i>Medal Evolution
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/host-city-performance">
                            <i class="bi bi-geo-alt me-1"></i>Host City Performance
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/sport-dominance">
                            <i class="bi bi-graph-up me-1"></i>Sport Dominance
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/advanced-visualizations">
                            <i class="bi bi-stars me-1"></i>Advanced Visualizations
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container mt-5">
        <div class="row mb-5">
            <div class="col-md-8 offset-md-2 text-center">
                <h1 class="display-4 mb-3">Olympic Games Data Visualization</h1>
                <p class="lead mb-4">Interactive exploration of Olympic history through dynamic visualizations</p>
            </div>
        </div>

        <div class="row mt-4">
            <div class="col-md-3 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="bi bi-trophy text-primary" style="font-size: 3rem;"></i>
                        <h3 class="mt-3">Medal Evolution</h3>
                        <p class="card-text">Track how countries' medal counts have evolved over time with interactive visualizations showing the rise and fall of Olympic powers.</p>
                        <a href="/medals-evolution" class="btn btn-primary mt-2">Explore</a>
                    </div>
                </div>
            </div>
            
            <div class="col-md-3 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="bi bi-geo-alt text-primary" style="font-size: 3rem;"></i>
                        <h3 class="mt-3">Host City Effect</h3>
                        <p class="card-text">Analyze how countries perform before, during, and after hosting the Olympic Games, visualizing the "home advantage" phenomenon.</p>
                        <a href="/host-city-performance" class="btn btn-primary mt-2">Explore</a>
                    </div>
                </div>
            </div>
            
            <div class="col-md-3 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="bi bi-graph-up text-primary" style="font-size: 3rem;"></i>
                        <h3 class="mt-3">Sport Dominance</h3>
                        <p class="card-text">Discover which countries dominate specific Olympic sports and how this has changed over time with animated transitions.</p>
                        <a href="/sport-dominance" class="btn btn-primary mt-2">Explore</a>
                    </div>
                </div>
            </div>
            
            <div class="col-md-3 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="bi bi-stars text-primary" style="font-size: 3rem;"></i>
                        <h3 class="mt-3">Advanced Visualizations</h3>
                        <p class="card-text">Explore complex Olympic data patterns through high-dimensional heatmaps and medal flow Sankey diagrams.</p>
                        <a href="/advanced-visualizations" class="btn btn-primary mt-2">Explore</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <footer class="footer py-3 bg-dark text-white mt-5">
        <div class="container text-center">
            <span>Olympic Data Visualization Project © 2023</span>
            <div class="mt-2">
                <small>Data sourced from Olympic records | Created with D3.js and Flask</small>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html> 